/**
 * 
 */
package rad.framework.conv;

import org.apache.commons.beanutils.Converter;
import org.apache.commons.lang.StringUtils;

public class EnumConverter implements Converter {
	public Object convert(Class type, Object value) {
		if (StringUtils.isEmpty((String) value)) {
			return null;
		} else {
			System.out.println("ENUM: "+ value);
			return Enum.valueOf(type, (String) value);
		}
	}
}